package com.millstein.feign;

import com.millstein.request.NewUserCouponRequest;
import com.millstein.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description:
 * @author: tsing
 * @create: 2021-09-18 10:06
 */
@FeignClient(name = "xdclass-coupon-service", path = "/api/coupon/v1")
public interface CouponFeignService {

    /**
     * 新用户注册发放优惠券
     * @param newUserCouponRequest 优惠券信息
     * @return
     */
    @PostMapping("/new_user")
    JsonData addNewUserCoupon(@RequestBody NewUserCouponRequest newUserCouponRequest);
}
